package com.example.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("tb_item")
public class Product {
    Integer id;//商品ID
    @TableField("title")
    String name;//商品名称//
    BigDecimal price;//现价
    String image;//图片路径
    @TableField(exist = false)
    Integer saleCount = 1000;//销量
    @TableField(exist = false)
    Integer commentCount = 5;//评论数
    @TableField("num")
    Integer stock;//库存
}
